//
//  VIPCardUseModel.m
//  NeusoftHBSJSober
//
//  Created by Apple-21 on 15/11/10.
//  Copyright (c) 2015年 com.neusoftsober. All rights reserved.
//

#import "VIPCardUseModel.h"

@implementation VIPCardUseModel

@end
@implementation VIPCardUseHttpResult

- (id)getVIPCardUseResultWithArray:(NSArray *)array{

    NSMutableArray *data = [NSMutableArray array];
    for (NSDictionary *dict in array) {
        [data addObject:[self getVIPCardUseResultWithDictionary:dict]];
    }
    return data;
}
- (id)getVIPCardUseResultWithDictionary:(NSDictionary *)dict{

    if (dict) {
        VIPCardUseModel *model = [[VIPCardUseModel alloc]init];
        
        model.cardId = [((NSNumber *)dict[@"CardID"]) stringValue];
        NSString *string = [dict[@"CreateTime"] stringByReplacingOccurrencesOfString:@"T" withString:@""];
        NSString *string2 = [string substringToIndex:18];
        model.createTime = string2;
        model.ID = [((NSNumber *)dict[@"ID"]) stringValue];
        model.isUse = [(dict[@"IsUse"]) stringValue];
        model.onwerUserName = (dict[@"OnwerUserName"] == [NSNull null]) ? @"" : dict[@"OnwerUserName"];
        model.onwerID = [((NSNumber *)dict[@"OwnerID"]) stringValue];
        model.userID = [((NSNumber *)dict[@"UserID"]) stringValue];
        model.userName = (dict[@"UserName"] == [NSNull null]) ? @"" : dict[@"UserName"];
        return model;
        
    }
    return nil;
}

@end